// 访问日志记录中间件
export default defineEventHandler((event) => {
	const path = event.path;
	const method = event.method;
	const ip = getRequestIP(event) || 'unknown';
	const status = getResponseStatus(event);
	const msg = [ip, status, method, path];

	info(msg.join(' '));
});
